
public class MyJavaRules34 {

    public void exampleWithNullCheck2(RespErrorBody response) {
        RespErrorBody a3 = new RespErrorBody();
        a3.setBookNo("1"); // Compliant
    }

}

class RespErrorBody {}

class MyResponse extends RespErrorBody{}

class BaseRespBody extends RespErrorBody{}

class M54075Resp extends BaseRespBody{}

class Response {}